package com.ruoyi.users.service.impl;

import java.util.List;

import com.ruoyi.users.vo.UStudyClockVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.users.mapper.UStudyClockMapper;
import com.ruoyi.users.domain.UStudyClock;
import com.ruoyi.users.service.IUStudyClockService;

/**
 * 签到记录Service业务层处理
 * 
 * @author yzc
 * @date 2024-12-03
 */
@Service
public class UStudyClockServiceImpl implements IUStudyClockService 
{
    @Autowired
    private UStudyClockMapper uStudyClockMapper;

    /**
     * 查询签到记录
     * 
     * @param id 签到记录主键
     * @return 签到记录
     */
    @Override
    public UStudyClock selectUStudyClockById(Long id)
    {
        return uStudyClockMapper.selectUStudyClockById(id);
    }

    /**
     * 查询签到记录列表
     * 
     * @param uStudyClock 签到记录
     * @return 签到记录
     */
    @Override
    public List<UStudyClock> selectUStudyClockList(UStudyClock uStudyClock)
    {
        return uStudyClockMapper.selectUStudyClockList(uStudyClock);
    }

    /**
     * 新增签到记录
     * 
     * @param uStudyClock 签到记录
     * @return 结果
     */
    @Override
    public int insertUStudyClock(UStudyClock uStudyClock)
    {
        return uStudyClockMapper.insertUStudyClock(uStudyClock);
    }

    /**
     * 修改签到记录
     * 
     * @param uStudyClock 签到记录
     * @return 结果
     */
    @Override
    public int updateUStudyClock(UStudyClock uStudyClock)
    {
        return uStudyClockMapper.updateUStudyClock(uStudyClock);
    }

    /**
     * 批量删除签到记录
     * 
     * @param ids 需要删除的签到记录主键
     * @return 结果
     */
    @Override
    public int deleteUStudyClockByIds(Long[] ids)
    {
        return uStudyClockMapper.deleteUStudyClockByIds(ids);
    }

    /**
     * 删除签到记录信息
     * 
     * @param id 签到记录主键
     * @return 结果
     */
    @Override
    public int deleteUStudyClockById(Long id)
    {
        return uStudyClockMapper.deleteUStudyClockById(id);
    }

    @Override
    public List<UStudyClockVo> selectall(UStudyClockVo uStudyClockVo) {
        return uStudyClockMapper.selectall(uStudyClockVo);
    }
}
